package org.ws.task.web.vo;

import org.ws.task.model.NodeMetadata;

import java.io.Serializable;
import java.util.Collection;

public class TaskTreeNode implements Serializable {

    private static final long serialVersionUID = 2401310303029353991L;

    public TaskTreeNode(String name) {
        this.name = name;
    }

    String name;

    NodeMetadata data;

    Boolean leader = Boolean.FALSE;

    Collection<TaskTreeNode> children;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public NodeMetadata getData() {
        return data;
    }

    public void setData(NodeMetadata data) {
        this.data = data;
    }

    public Boolean getLeader() {
        return leader;
    }

    public void setLeader(Boolean leader) {
        this.leader = leader;
    }

    public Collection<TaskTreeNode> getChildren() {
        return children;
    }

    public void setChildren(Collection<TaskTreeNode> children) {
        this.children = children;
    }
}
